/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.muni.fi.pb138.mathml_canonicalizator;

import java.util.Map;

/**
 *
 * @author Richard
 */
public class DestroyerTransformer implements Transformer {
    
    private Node root;
    
    public DestroyerTransformer(String tagName, Map<String, String> attributes) {
        root = new NodeImpl(tagName, attributes);
    }

    @Override
    public void addChild(Node n) {
        // redundant
    }

    @Override
    public void setTextContent(String s) {
        // redundant
    }

    @Override
    public Node transform() {
        // root has no children and is set as shadow -> nothing will output
        root.setShadow(true);
        return root;
    }
    
}
